
可使用stl中的includes函数来判断一个集合是否是另一个集合的子集。
http://www.programlife.net/stl-includes.html
亮点:
if(includes(coll.begin(), coll.end(), sub.begin(), sub.end()))
{
cout << "sub is a sub set of coll" << endl;
}
else
{
cout << "not a sub set" << endl;
}
HxLauncher: Launch Android applications by voice commands